/********************************************************************************
 *      Copyright:  (C) 2022 dairongan<2974932606@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  oled_api.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(07/27/2022)
 *         Author:  dairongan <2974932606@qq.com>
 *      ChangeLog:  1, Release initial version on "07/27/2022 08:06:48 PM"
 *                 
 ********************************************************************************/

#ifndef __OLEDAPI_H_
#define __OLEDAPI_H_

#define OLED_DATA  1
#define OLED_CMD   0
#define OLED_SETPOS 3
#define Max_Column  128

typedef unsigned char uint8_t;

extern void OLED_Set_Pos(int fd,unsigned char x, unsigned char y);
extern  void OLED_Display_On(int fd);
extern void OLED_Display_Off(int fd);
extern void OLED_Clear(int fd);
extern void OLED_On(int fd);
extern void OLED_ShowChar(int fd,uint8_t x,uint8_t y,uint8_t chr,uint8_t Char_Size);
extern void OLED_ShowString(int fd,uint8_t x,uint8_t y,uint8_t *chr,uint8_t Char_Size);
extern void OLED_ShowCHinese(int fd,uint8_t x,uint8_t y,uint8_t no);
extern void OLED_DrawBMP(int fd,unsigned char x0, unsigned char y0,unsigned char x1, unsigned char y1,unsigned char  BMP[]);
extern void OLED_Init(int fd);
extern void * get_time();
extern void OLED_updateTime(int fd);

#endif
